package com.audaque.springboot.foshanupload.web.esdatademo.model.pojo;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class NestedFamily {
    @Id
    private String my_id;
    @Field(type = FieldType.Keyword)
    private String name;
    @Field(type = FieldType.Keyword)
    private String level;
    @Field(type = FieldType.Nested)
    private List<NestedFamily> child= new ArrayList<>();
}
